|
|
|
|
|
|
|
(table continued from previous page) |
|
|
|
|
| Property | Type/Value | Meaning/Use | | ReplicaID | Numeric | This is the unique ID number of this copy of the replicated database. This is set when you initiate replication services (see Day 20, ''Database Replication"). | | ReplicaMaster | Numeric | This is the unique ID value that identifies the Replica Master for this database (see Day 20). | | Connection | Object | This is a reference to the ODBCDirect object that can be used to access this database. See the section later in this chapter on ODBCDirect data-access objects. |
|
|
|
|
|
|
Let's modify the routine to open a non-Microsoft Jet database in order to compare the differences in the property values between Microsoft Jet and non-Microsoft Jet databases. Change the code to match the following example and run the program again to review the results: |
|
|
|
|
|
|
|
|
'
' use db created earlier
'strDBName = App.Path & "\CreateDBOne.mdb"
strDBName = App.Path
'
' open db in default ws
Set ws = DBEngine.Workspaces(0)
'Set db = ws.OpenDatabase(strDBName)
Set db = ws.OpenDatabase(strDBName, False, False, "Text;")
' |
|
|
|
|
|
|
|
|
You can see from this code snippet that the database name has been set to just the application path and that the OpenDatabase method has been altered to open the directory folder as if it were a Text database. Make the changes to your program, save it, and run it. When you click the DBProperties button this time, you see different property values. |
|
|
|
|
| |
|
|
|
|
This last coding example points out a very important fact about the Microsoft Jet database engine. While the Microsoft Jet engine treats the Microsoft Access database as a single file with many tables inside that file, the Microsoft Jet engine treats all other ISAM-type databases quite differently. To Microsoft Jet, the directory folder is the database and the ISAM files are the data tables. This is why it is a good idea to keep all ISAM-type data files in the same directory folder. |
|
|
|
|
|
|
|